
package com.example.quartz.common.Response;


public enum  ResultCode {

    /* 成功 */
    SUCCESS(200, "成功"),

    /* 默认失败 */
    FAIL(999, "失败"),

    /*QUARTZ-定时任务*/
    QUARTZ_JOBCLASSNAME_IS_EXIST(1001, "该定时任务类名已存在"),
    QUARTZ_IS_NOT_EXIST(1002, "定时任务不存在"),
    QUARTZ_UPDATE_IS_FAIL(1003, "定时任务更新失败"),
    ;


    private Integer code;

    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
